<?php

define('YQL','http://query.yahooapis.com/v1/public/yql?format=json&q=');

define('AUC_WATCH_YQL_BASE',"select * from html where url=\"http://tw.user.bid.yahoo.com/tw/show/aboutme?tab=watch&userID=%s\" and xpath='%s'");
define('AUC_WATCH_YQL_TITLEIMG','//td[@class="img"]/div/table/tr/td/a');
define('AUC_WATCH_YQL_PRICE','//td[@class="curent"]/p');

// http://tw.search.bid.yahoo.com/rss/search/ipod?ei=UTF-8&cat=&fp_ad_hits=5&s=-numbids&cat=
// http://tw.search.bid.yahoo.com/rss/search/?ei=UTF-8&cat=23336&fp_ad_hits=5
define('AUC_SEARCHRSS_YQL_BASE', "select title,link,description from rss where url=\"http://tw.search.bid.yahoo.com/rss/search/%s?%s\"");

define('AUC_SEARCH_YQL_BASE', "select * from html where url=\"http://tw.search.bid.yahoo.com/search/ac?p=%s&%s\" and xpath='%s'");
define('AUC_SEARCH_YQL_CATEGORY','//div[@id="ypsausmc"]/div[@class="bd"]/ul/li');

// http://tw.search.bid.yahoo.com/service/ac_search_result.xml?query=i&results=100
define('AUC_AUTOCOMPLETE_YQL_BASE', "select * from xml where url=\"http://tw.search.bid.yahoo.com/service/ac_search_result.xml?query=%s\"");

// http://tw.bid.yahoo.com/tw/rss/top?catid=23336&t=won
// http://tw.bid.yahoo.com/tw/rss/top?catid=2092101502&t=bid
define('AUC_TOP', 'http://tw.bid.yahoo.com/tw/rss/top');

// http://tw.bid.yahoo.com/tw/2092101503-ncateoption.html
define('AUC_CATEGORY', 'http://tw.bid.yahoo.com/tw/%s-ncateoption.html');

// http://l2.ac.tp2.yahoo.com/service/ajax_sts.php?rnd=0.5541970076059335
define('AUC_AD1', 'http://tw.bid.yahoo.com/service/ajax_sts.php');

// http://l2.ac.tp2.yahoo.com/service/ajax_ftr.php?rnd=0.8499975997405882
define('AUC_AD2', 'http://tw.bid.yahoo.com/service/ajax_sts.php');

// http://tw.bid.yahoo.com/tw/show/premiumsellers?catid=23336
define('AUC_PREMIUMSELLERS', 'http://tw.bid.yahoo.com/tw/show/premiumsellers');
?>
